package com.iv.durian.cloud.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * Created by zlw on 2018-06-30.
 */

@Data
@Builder
@ApiModel(value="课程对象")
public class LessonVO {

    @ApiModelProperty(value="课程ID")
    private Integer id;

    @ApiModelProperty(value="课程名称")
    private String name;

    @ApiModelProperty(value="代课老师")
    private String teacher;

    @ApiModelProperty(value="标价")
    private BigDecimal price;

    @ApiModelProperty(value="最多学员")
    private int maximum;

    @ApiModelProperty(value="课程提供者 0-机构 1-个人")
    private int source;

    @ApiModelProperty(value="最小年龄段")
    private int stageMin;

    @ApiModelProperty(value="最大的年龄段")
    private int stageMax;

    @ApiModelProperty(value="状态 0-维护 1-上线")
    private int status;

    @ApiModelProperty(value="课程记录建立时间")
    @JsonProperty("create_time")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty(value="课程记录的最后更新时间")
    @JsonProperty("update_time")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date updateTime;


}
